import { createRouter, createWebHashHistory, RouteRecordRaw } from "vue-router";

const routes: Array<RouteRecordRaw> = [
  {
    path: "/",
    name: "layoutMain",
    component: () => import("../layout/layoutMain.vue")
  },
  {
    path: "/cs-demo",
    name: "cs-demo",
    component: () => import("@/view/cs-demo/index.vue")
  },
];

const router = createRouter({
  history: createWebHashHistory(),
  routes,
});

export default router;